package com.examples;

public class TestClass {

	public static void main(String[] args) {

		ModelS modelS = new ModelS();
		modelS.setName("Model S Car from Tesla");

		ModelX modelX = new ModelX();
		modelX.setName("Model X Car from Tesla for Families");
		
		Car car = new Car();

		// Car details

		modelS.carDetails();
		modelS.start();

		modelS.applySpeed(15);
		car.applySpeed();
		
		
		modelS.applyBreak();

		//
		modelX.carDetails();
		modelX.start();
		modelX.applySpeed();
		modelX.applyBreak();

	}

}
